package com.jiantong.work.service;

import com.jiantong.work.model.ButcherReportSurveyRecord;
import io.terminus.common.model.Response;

import java.util.List;
import java.util.Map;

/**
 * Created by niufei on 2017/3/23.
 *
 */
public interface ButcherReportSurveyRecordReadService {

    /**
     * 根据屠宰检疫申报单据的主键id  查询一条数据
     *
     * @param reportId 主键id
     * @return ButcherReportSurveyRecord 对象
     */
    Response<ButcherReportSurveyRecord> findByReport(Long reportId);

    /**
     * 根据屠宰检疫申报单据的主键id  查询政府断的屠宰检疫的主键id
     * @param reportId reportId 主键id
     * @return Long id
     */
    Long findIdByReportId(Long reportId);


    /**
     * 根据Id查找
     */
    Response<ButcherReportSurveyRecord> findById(Long id);

    Response<List<ButcherReportSurveyRecord>> findByNameOrNumber(Map criteria);

}
